Package com.cisco.pt.ipc.sim.impl
Class CommandHistoryImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.impl.CommandHistoryImpl
- All Implemented Interfaces:
IPCData,CommandHistory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetHistory(List<String> history) voidsetMaxCount(int maxCount) Methods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVector
-
Field Details
-
history
-
maxCount
protected int maxCount
-
-
Constructor Details
-
CommandHistoryImpl
public CommandHistoryImpl()
-
-
Method Details
-
getHistory
- Specified by:
getHistoryin interfaceCommandHistory- Returns:
- List<String> Returns a List<String>
-
setHistory
- Specified by:
setHistoryin interfaceCommandHistory- Parameters:
history- Takes in a parameter of history
-
getMaxCount
public int getMaxCount()- Specified by:
getMaxCountin interfaceCommandHistory- Returns:
- int Returns a int
-
setMaxCount
public void setMaxCount(int maxCount) - Specified by:
setMaxCountin interfaceCommandHistory- Parameters:
maxCount- Takes in a parameter of maxCount
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Specified by:
readin classIPCDataImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-